package com.liao.badminton.mapper;

import com.liao.badminton.code.*;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import com.liao.badminton.entity.StipulationLevel;
import com.liao.badminton.dto.StipulationLevelDto;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
* @author liaocheng
* @date 2024-11-08
* description:等级划分规则表
*/
@Mapper
public interface StipulationLevelMapper extends BaseMapper<StipulationLevel> {
    int updateBy(StipulationLevel stipulationLevel);
    int add(StipulationLevel stipulationLevel);
    List<StipulationLevel> findByPageParam(PageParam<StipulationLevelDto> stipulationLevelPageParam);
    int countByPageParam(PageParam<StipulationLevel> stipulationLevelPageParam);
    int deletes(@Param("ids") List<Long> ids);
    List<StipulationLevel> findByIds(@Param("ids") List<Long> ids);
    void addBatch(@Param("list")List<StipulationLevel> list);
    StipulationLevel findById(@Param("id") Long id);
    List<StipulationLevel> findByParam(StipulationLevelDto param);
}
